package com.acme.biz.web.mvc.controller;

import com.acme.biz.api.ApiResponse;
import com.acme.biz.api.model.User;
import jakarta.validation.Valid;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class UserController {

    @PostMapping("/select")
    public ApiResponse<User> selectUser(@Valid @RequestBody User user){
        return ApiResponse.success(new User());
    }

}
